package com.dawn.trademanage.service;

import java.util.List;

import com.dawn.trademanage.bean.TradeDetailBean;
import com.dawn.trademanage.bean.TradeInfoBean;

public interface TradeManageService {

	public boolean addTrade(TradeInfoBean tradeInfo);

	public boolean addTradeDetail(TradeDetailBean tradeDetailBean);

	public List<TradeInfoBean> showTradeList();

	public TradeInfoBean findTradeById(long tradeId);

	public void updateTrade(TradeInfoBean tradeInfoBean);

	public boolean findIsFollowed(long userId, long tradeId);

	public boolean increaseBalance(long tradeId, int num);

	public boolean reduceBalance(long tradeId, int num);

	public void beginTrade(long tradeId);
	
	public void stopTrade(long tradeId);
	
	public List<TradeDetailBean> listFollowers(Long tradeId);
	
	public List<TradeDetailBean> listIdols(Long userId);
		

}
